package com.wang.Demo1;

import java.io.IOException;

import javax.servlet.GenericServlet;
import javax.servlet.ServletConfig;
import javax.servlet.ServletException;
import javax.servlet.ServletRequest;
import javax.servlet.ServletResponse;

public class Demo02 extends GenericServlet{

	@Override
	public void service(ServletRequest arg0, ServletResponse arg1) throws ServletException, IOException {
		ServletConfig config=this.getServletConfig();
		System.out.println(config.getServletName()+"----");
		System.out.println("GenericServlet");
		
	}
	@Override
	public void init() throws ServletException {
		System.out.println("init");
		
	}

}
